#include "widget.h"
#include "ui_widget.h"
#include <QDebug>
#include <QButtonGroup>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QButtonGroup *group1 = new QButtonGroup(this);
    QButtonGroup *group2 = new QButtonGroup(this);
    QButtonGroup *group3 = new QButtonGroup(this);

    group1->addButton(ui->radioButton_5);
    group1->addButton(ui->radioButton_6);
    group1->addButton(ui->radioButton_7);
    group2->addButton(ui->radioButton_8);
    group2->addButton(ui->radioButton_9);
    group2->addButton(ui->radioButton_10);
    group3->addButton(ui->radioButton_11);
    group3->addButton(ui->radioButton_12);

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_radioButton_clicked(bool checked)
{
    qDebug() << "checked: "<< checked;
}

void Widget::on_radioButton_2_pressed()
{
    qDebug() << "pressed";
}

void Widget::on_radioButton_3_released()
{
    qDebug() << "released";
}

void Widget::on_radioButton_4_toggled(bool checked)
{
    qDebug() << "toggled: "<< checked;
}
